package com.fzu.mmdbproxyframework.util;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class LogManager {
	private Logger logger = null;   
	public LogManager() {
		PropertyConfigurator.configure("config/log4j.properties");
	
	}
	public Logger creatLogger(Object Class){
		if(logger == null){
			logger = Logger.getLogger(Class.getClass());
		}
		return logger;
		
		
	}
	public static void main(String[] args) {
		
		LogManager logmanage =new LogManager();
		Logger logger = logmanage.creatLogger(LogManager.class);
	
		logger.info("88888info888888");
		logger.warn("warn");
		logger.error("erreerrrrrr");
		logger.fatal("fatal");
		logger.debug("debug000");
	}
}
